<template>
  <h1>预定页面</h1>
</template>
<script setup>

import {onMounted, ref} from 'vue'
import {useRoute} from 'vue-router'
import axios from "axios";
import router from "@/router/index.js";

const route = useRoute()
const id = route.query.id
console.log(id)

onMounted(()=>{
  axios.get(`http://localhost:8000/app/order/`)
      .then(res=>{
        console.log(res.data)
      })
})

</script>